
import * as React from 'react';
import { View, Text, Button } from 'react-native';


function ThirdPage(props) {
    const { navigation } = props;
    return (
        <View style={{ flex: 1, alignItems: 'center', justifyContent: 'space-around' }}>

            <Button
                title="First Page"
                onPress={() => navigation.navigate('FirstPage')}
                color="gray"
            />
            <Button
                title="Second Page"
                onPress={() => navigation.navigate('SecondPage')}
                color="green"
            />
            <Button
                title="Fourth Page"
                onPress={() => navigation.navigate('FourthPage')}
                color="red"
            />
        </View >

    );
}

export default ThirdPage;
